package com.itheima.pojo;

import lombok.Data;

import java.util.Date;

/**
 * @author ：石破天
 * @date ：Created in 2022年09月09日
 * @description ：
 * @version: 1.0
 */
//@Data  set get  toString
public class Student {
    private Integer id;
    private String name;
    private Integer age;
    private Date birthday;
    private Integer cid;

    // 一个学生对应一个 班级
    private Classroom classroom;//表达一对一关系

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    public Classroom getClassroom() {
        return classroom;
    }

    public void setClassroom(Classroom classroom) {
        this.classroom = classroom;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", birthday=" + birthday +
                ", cid=" + cid +
                ", classroom=" + classroom +
                '}';
    }
}
